//---------------------------------------------------------------------------

#ifndef SettingsH
#define SettingsH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
#include <DBXpress.hpp>
#include <SqlExpr.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <DBCtrls.hpp>
#include <ComCtrls.hpp>
#include <Menus.hpp>
#include <Dialogs.hpp>
#include <FileCtrl.hpp>
#include <DBClient.hpp>
#include <DBLocal.hpp>
#include <DBLocalS.hpp>
#include <FMTBcd.hpp>
#include <Provider.hpp>
#include <dbcgrids.hpp>
#include <Mask.hpp>
//---------------------------------------------------------------------------
extern int ApplicationVersion[4];
class TFormSettings : public TForm
{
__published:	// IDE-managed Components
        TButton *Button1;
    TEdit *EditDbName;
    TEdit *EditDbUser;
    TEdit *EditDbPassword;
    TLabel *Label1;
    TLabel *Label2;
    TLabel *Label3;
    TDataSource *DataSetZetadisk;
    TDBGrid *DBGridZetadisk;
    TDBNavigator *DBNavigator1;
    TLabel *Label7;
    TLabel *Label8;
    TLabel *Label9;
    TPopupMenu *PopupMenu1;
    TMenuItem *N1;
    TPopupMenu *PopupMenuLocalPath;
    TMenuItem *N2;
    TOpenDialog *OpenDialog1;
    TSQLConnection *SQLConnectionOracle;
    TSQLDataSet *ds_personal;
    TBCDField *ds_personalID_PERSONAL;
    TStringField *ds_personalFNAME;
    TStringField *ds_personalLOGIN;
    TDataSetProvider *DataSetProviderZ;
    TSQLQuery *SQLQueryZ;
    TClientDataSet *ds_zetadisk;
    TFMTBCDField *ds_zetadiskID_PERSONAL;
    TFMTBCDField *ds_zetadiskID_XFILES;
    TStringField *ds_zetadiskPATH_LOCAL;
    TStringField *ds_zetadiskFULL_NAME_DIR;
    TSQLMonitor *SQLMonitor1;
    TFMTBCDField *ds_zetadiskID;
    TFMTBCDField *SQLQueryZID;
    TFMTBCDField *SQLQueryZID_PERSONAL;
    TFMTBCDField *SQLQueryZID_XFILES;
    TStringField *SQLQueryZPATH_LOCAL;
    TStringField *SQLQueryZFULL_NAME_DIR;
    TDBCtrlGrid *DBCtrlGrid1;
    TDBEdit *DBEdit1;
    TDBEdit *DBEdit2;
    void __fastcall Button2Click(TObject *Sender);
    void __fastcall Button1Click(TObject *Sender);
    void __fastcall N1Click(TObject *Sender);

    void __fastcall N2Click(TObject *Sender);
  void __fastcall FormActivate(TObject *Sender);
    void __fastcall DBNavigator1Click(TObject *Sender,
          TNavigateBtn Button);
    void __fastcall ds_zetadiskAfterPost(TDataSet *DataSet);
    void __fastcall ds_zetadiskAfterInsert(TDataSet *DataSet);
    void __fastcall DataSetProviderZGetTableName(TObject *Sender,
          TDataSet *DataSet, AnsiString &TableName);


private:	// User declarations
public:		// User declarations
    AnsiString  ConnectionString;
        __fastcall TFormSettings(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormSettings *FormSettings;
//---------------------------------------------------------------------------
#endif
